home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / nasm095s.zip / MAKEFILE.SC < prev    next >
Text File  |  1997-07-27  |  3KB  |  112 lines

  1. # Makefile for the Netwide Assembler under 32-bit Windows(tm)
  2. #
  3. # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
  4. # Julian Hall. All rights reserved. The software is
  5. # redistributable under the licence given in the file "Licence"
  6. # distributed in the NASM archive.
  7. #
  8. # This Makefile is designed to build NASM using the 32-bit WIN32 C
  9. # compiler Symantec(tm) C++ 7.5, provided you have a MAKE-utility
  10. # that's compatible to SMAKE.
  11.  
  12. CC = sc
  13. CCFLAGS = -c -a1 -mn -Nc -w2 -w7 -o+time -5
  14. # -5            optimize for pentium (tm)
  15. # -c            compile only
  16. # -o-all        no optimizations (to avoid problems in disasm.c)
  17. # -o+time       optimize for speed
  18. # -o+space      optimize for size
  19. # -A1           byte alignment for structures
  20. # -mn           compile for Win32 executable
  21. # -Nc           create COMDAT records
  22. # -w2           possible unattended assignment: off
  23. # -w7           for loops with empty instruction-body
  24.  
  25. LINK = link
  26. LINKFLAGS = /noi /exet:NT /su:console
  27. # /noignorecase all symbols are case-sensitive
  28. # /exet:NT      Exetype: NT (Win32)
  29. # /su:console   Subsystem: Console (Console-App)
  30.  
  31. LIBRARIES =
  32. EXE = .exe
  33. OBJ = obj
  34.  
  35. .c.$(OBJ):
  36.         $(CC) $(CCFLAGS) $*.c
  37.  
  38.  
  39. #
  40. # modules needed for different programs
  41. #
  42.  
  43. NASMOBJS = nasm.$(OBJ) nasmlib.$(OBJ) float.$(OBJ) insnsa.$(OBJ) \
  44.            assemble.$(OBJ) labels.$(OBJ) parser.$(OBJ) outform.$(OBJ) \
  45.        outbin.$(OBJ) outaout.$(OBJ) outcoff.$(OBJ) outelf.$(OBJ) \
  46.        outobj.$(OBJ) outas86.$(OBJ) outrdf.$(OBJ) outdbg.$(OBJ) \
  47.        preproc.$(OBJ) listing.$(OBJ)
  48.  
  49. NDISASMOBJS = ndisasm.$(OBJ) disasm.$(OBJ) sync.$(OBJ) nasmlib.$(OBJ) \
  50.               insnsd.$(OBJ)
  51.  
  52.  
  53. #
  54. # programs to create
  55. #
  56.  
  57. all : nasm$(EXE) ndisasm$(EXE)
  58.  
  59.  
  60. #
  61. # We have to have a horrible kludge here to get round the 128 character
  62. # limit, as usual... we'll simply use LNK-files :)
  63. #
  64. nasm$(EXE): $(NASMOBJS)
  65.         $(LINK) $(LINKFLAGS) @<<
  66. $(NASMOBJS)
  67. nasm.exe;
  68. <<
  69.  
  70. ndisasm$(EXE): $(NDISASMOBJS)
  71.         $(LINK) $(LINKFLAGS) @<<
  72. $(NDISASMOBJS)
  73. ndisasm.exe;
  74. <<
  75.  
  76.  
  77.  
  78. #
  79. # modules for programs
  80. #
  81.  
  82. disasm.$(OBJ): disasm.c nasm.h disasm.h sync.h insns.h names.c
  83. assemble.$(OBJ): assemble.c nasm.h assemble.h insns.h
  84. float.$(OBJ): float.c nasm.h
  85. labels.$(OBJ): labels.c nasm.h nasmlib.h
  86. listing.$(OBJ): listing.c nasm.h nasmlib.h listing.h
  87. nasm.$(OBJ): nasm.c nasm.h nasmlib.h parser.h assemble.h labels.h \
  88.     listing.h outform.h
  89. nasmlib.$(OBJ): nasmlib.c nasm.h nasmlib.h
  90. ndisasm.$(OBJ): ndisasm.c nasm.h sync.h disasm.h
  91. outas86.$(OBJ): outas86.c nasm.h nasmlib.h
  92. outaout.$(OBJ): outaout.c nasm.h nasmlib.h
  93. outbin.$(OBJ): outbin.c nasm.h nasmlib.h
  94. outcoff.$(OBJ): outcoff.c nasm.h nasmlib.h
  95. outdbg.$(OBJ): outdbg.c nasm.h nasmlib.h
  96. outelf.$(OBJ): outelf.c nasm.h nasmlib.h
  97. outobj.$(OBJ): outobj.c nasm.h nasmlib.h
  98. outrdf.$(OBJ): outrdf.c nasm.h nasmlib.h
  99. outform.$(OBJ): outform.c outform.h nasm.h
  100. parser.$(OBJ): parser.c nasm.h nasmlib.h parser.h float.h names.c
  101. preproc.$(OBJ): preproc.c macros.c preproc.h nasm.h nasmlib.h
  102. sync.$(OBJ): sync.c sync.h
  103. insnsa.$(OBJ): insnsa.c nasm.h insns.h
  104. insnsd.$(OBJ): insnsd.c nasm.h insns.h
  105.  
  106.  
  107.  
  108. clean :
  109.     del *.obj
  110.     del nasm$(EXE)
  111.     del ndisasm$(EXE)
  112.